package cosc617_blackteam;

/**
 * @author Laura
 * Command to remove the given party from the table it is seated at
 */
public class CmdRemoveParty implements I_Command {
	private InfoAggregator infoagg;
	CustomerParty party;
	public CmdRemoveParty(InfoAggregator infoagg, CustomerParty party){
		this.infoagg = infoagg;
		this.party = party;
	}
	@Override
	public Object execute() {
		infoagg.removeParty(party);
		return null;
	}

}
